/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

.showcaseCard {
  height: 100%;
  color: var(--ifm-color-emphasis-800);
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.showcaseCardImage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin: -1rem -1rem 1rem;
  background: var(--ifm-color-emphasis-100);
  border-radius: var(--ifm-card-border-radius) var(--ifm-card-border-radius) 0 0;
  border-bottom: 2px solid var(--ifm-color-emphasis-200);
  overflow: hidden;
  transition: all 0.2s ease;
}

.showcaseCardImage:hover {
  background: var(--ifm-color-emphasis-200);
}

.showcaseCardImage img {
  max-width: 80%;
  max-height: 80%;
  height: auto;
  object-fit: contain;
  padding: 1rem;
  transition: all 0.2s ease;
}

.showcaseCardImage:hover img {
  transform: scale(1.1);
}

.showcaseCardHeader {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.showcaseCardTitle {
  margin-bottom: 0;
  flex: 1 1 auto;
  font-size: 1.2rem;
}

.showcaseCardTitle a {
  text-decoration: none;
  background: linear-gradient(var(--ifm-color-primary), var(--ifm-color-primary)) 0% 100% / 0% 1px no-repeat;
  transition: background-size ease-out 200ms;
}

.showcaseCardTitle a:not(:focus):hover {
  background-size: 100% 1px;
}

.showcaseCardBody {
  font-size: smaller;
  line-height: 1.66;
  margin-bottom: 12px;
}

.downloadButtons {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 12px;
  margin-bottom: 2px;
}

.downloadButton {
  width: 80px !important;
  height: 24px !important;
  padding: 0 !important;
  font-size: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 4px 10px;
  font-size: 0.75rem;
  width: 100px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.downloadButton:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cardFooter {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ifm-color-emphasis-200);
}

.sourceLink {
  font-size: 0.75rem;
  margin-top: auto;
  margin-bottom: 0;
  padding-left: 5px;
  width: 100%;
  color: var(--ifm-color-emphasis-600);
}

.sourceLink a {
  color: var(--ifm-color-primary);
  text-decoration: none;
}

.sourceLink a:hover {
  text-decoration: underline;
}

.tag {
  font-size: 0.75rem;
  margin-right: 6px;
  margin-bottom: 6px;
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
}

.textLabel {
  margin-right: 8px;
}

.colorLabel {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0;
}

.svgIconFavorite {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
  color: var(--site-color-svg-icon-favorite);
}
